package com.pointi.emoTools;

import java.sql.ResultSet;

public class SysCallPointScoreGuideline
{
	public double ec_cai ;
	public int ec_cai_type ;
	public double ec_aai ;
	public int ec_aai_type ;
	public double ht_dur ;
	public int ht_dur_type ;
	public double ht_ht ;
	public int ht_ht_type ;
	public double ht_ctt ;
	public int ht_ctt_type ;
	public double ht_att ;
	public int ht_att_type ;
	public double ht_cttr ;
	public int ht_cttr_type ;
	public double ht_attr ;
	public int ht_attr_type ;
	public double lr_lro ;
	public int lr_lro_type ;
	public double lr_lrg ;
	public int lr_lrg_type ;
	public double lr_lror ;
	public int lr_lror_type ;
	public double lr_lrgr ;
	public int lr_lrgr_type ;
	// public double sp_gap_percentage ;
	// public double score_gap_percentage ;

	public SysCallPointScoreGuideline()
	{
		ec_cai = 50 ;
		ec_cai_type = 1 ;
		ec_aai = 10 ;
		ec_aai_type = 1 ;
		ht_dur = 10 ;
		ht_dur_type = 1 ;
		ht_ht = 5 ;
		ht_ht_type = 1 ;
		ht_ctt = 5 ;
		ht_ctt_type = 1 ;
		ht_att = 5 ;
		ht_att_type = 1 ;
		ht_cttr = 5 ;
		ht_cttr_type = 1 ;
		ht_attr = 5 ;
		ht_attr_type = 1 ;
		lr_lro = 5 ;
		lr_lro_type = 1 ;
		lr_lrg = 5 ;
		lr_lrg_type = 1 ;
		lr_lror = 5 ;
		lr_lror_type = 1 ;
		lr_lrgr = 5 ;
		lr_lrgr_type = 1 ;
		// sp_gap_percentage = 0 ;
		// score_gap_percentage = 0 ;
	}

	public void fnSetParameter(ResultSet inRS)
	{
		try
		{
			ec_cai = inRS.getDouble("ec_cai") ;
			ec_cai_type = inRS.getInt("ec_cai_type") ;
			ec_aai = inRS.getDouble("ec_aai") ;
			ec_aai_type = inRS.getInt("ec_aai_type") ;
			ht_dur = inRS.getDouble("ht_dur") ;
			ht_dur_type = inRS.getInt("ht_dur_type") ;
			ht_ht = inRS.getDouble("ht_ht") ;
			ht_ht_type = inRS.getInt("ht_ht_type") ;
			ht_ctt = inRS.getDouble("ht_ctt") ;
			ht_ctt_type = inRS.getInt("ht_ctt_type") ;
			ht_att = inRS.getDouble("ht_att") ;
			ht_att_type = inRS.getInt("ht_att_type") ;
			ht_cttr = inRS.getDouble("ht_cttr") ;
			ht_cttr_type = inRS.getInt("ht_cttr_type") ;
			ht_attr = inRS.getDouble("ht_attr") ;
			ht_attr_type = inRS.getInt("ht_attr_type") ;
			lr_lro = inRS.getDouble("lr_lro") ;
			lr_lro_type = inRS.getInt("lr_lro_type") ;
			lr_lrg = inRS.getDouble("lr_lrg") ;
			lr_lrg_type = inRS.getInt("lr_lrg_type") ;
			lr_lror = inRS.getDouble("lr_lror") ;
			lr_lror_type = inRS.getInt("lr_lror_type") ;
			lr_lrgr = inRS.getDouble("lr_lrgr") ;
			lr_lrgr_type = inRS.getInt("lr_lrgr_type") ;
			// sp_gap_percentage = inRS.getDouble("sp_gap_percentage") ;
			// score_gap_percentage = inRS.getDouble("score_gap_percentage") ;
		}
		catch (Exception e) { e.printStackTrace() ; }
	}
}
